<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<html class="not-ie" lang="en">
<!--<![endif]-->

<%@ include file="/common/taglibs.jsp"%>
<head>
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="<c:url value="/images/favicon.ico"/>" />
<title><decorator:title /> | <fmt:message key="webapp.name" /></title>

<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/lib/bootstrap-2.2.1.min.css'/>" />
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/lib/bootstrap-responsive-2.2.1.min.css'/>" />
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/style.css'/>" />
<link rel="stylesheet" type="text/css" media="all"
	href="<c:url value='/styles/lib/themes/jquery-ui-1.8.16.custom.css'/>" />


<script type="text/javascript"
	src="<c:url value='/scripts/lib/jquery-1.8.2.min.js'/>"></script>
<script type="text/javascript"
	src="<c:url value='/scripts/lib/bootstrap-2.2.1.min.js'/>"></script>
<script type="text/javascript"
	src="<c:url value='/scripts/lib/plugins/jquery.cookie.js'/>"></script>
<script type="text/javascript"
	src="<c:url value='/scripts/lib/jquery-ui-1.9.2.custom.min.js'/>"></script>
<script type="text/javascript"
	src="<c:url value='/scripts/lib/jquery.ui.datepicker-zh-CN.js'/>"></script>
<script type="text/javascript" src="<c:url value='/scripts/script.js'/>"></script>
<decorator:head />

<c:if test="${pageContext.request.locale.language == 'zh'}">
	<script type="text/javascript">
		$(document).ready(function() {
			$.datepicker.setDefaults($.datepicker.regional["zh-CN"]);
		});
	</script>
</c:if>
</head>
<body
	<decorator:getProperty property="body.id" writeEntireProperty="true"/>
	<decorator:getProperty property="body.class" writeEntireProperty="true"/>>
	<c:set var="currentMenu" scope="request">
		<decorator:getProperty property="meta.menu" />
	</c:set>

	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="row-fluid logo_top_banner">
				<%-- For smartphones and smaller screens --%>
				<!-- <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button> -->
				<img class="logo" src="${ctx}/images/top002.jpg"
					style="border-width: 0px;" />
				<%-- <a class="brand" href="<c:url value='/'/>"><fmt:message key="webapp.name"/></a> --%>


				<%-- <c:if test="${pageContext.request.locale.language ne 'en'}">
                    <div id="switchLocale"><a href="<c:url value='/?locale=en'/>">
                        <fmt:message key="webapp.name"/> in English</a>
                    </div>
                </c:if> --%>
			</div>

			<div class="row-fluid nav_top_banner">
				<span class="left">
					<fmt:message key="label.curTime" />
					<span id="curTime"></span>
				</span>
				<span class="right">
					<c:if test="${pageContext.request.remoteUser != null}">
            			<fmt:message key="user.status" /> ${pageContext.request.remoteUser}
            			<a href="<c:url value='/logout'/>"><fmt:message key="user.logout"/></a>
            		</c:if> 
            	</span>
			</div>
		</div>
	</div>

	<div class="row-fluid">
		<br /> <br /> <br /> <br />
	</div>



	<div class="container-fluid">
		<div id="messagesContainer">
			<%@ include file="/common/messages.jsp" %>
		</div>
		<div class="row-fluid">

			<%@ include file="/common/menu.jsp"%>
			<decorator:body />

			<c:if test="${currentMenu == 'AdminMenu'}">
				<div class="span2">
					<menu:useMenuDisplayer name="Velocity" config="navlistMenu.vm"
						permissions="rolesAdapter">
						<menu:displayMenu name="AdminMenu" />
					</menu:useMenuDisplayer>
				</div>
			</c:if>
		</div>
	</div>

	<div id="footer">
		<%-- <span class="left"><fmt:message key="webapp.version"/>
            <c:if test="${pageContext.request.remoteUser != null}">
            | <fmt:message key="user.status"/> ${pageContext.request.remoteUser}
            </c:if>
        </span> --%>
		<span class="right"> &copy; <fmt:message key="copyright.year" />
			<a href="<fmt:message key="company.url"/>"><fmt:message
					key="company.name" /></a>
		</span>
	</div>
	<%=(request.getAttribute("scripts") != null) ? request
					.getAttribute("scripts") : ""%>
</body>
</html>
